package com.globallogic.university.venues;
/**
 * Class represents an auditorium.
 * 
 * @author vladyslav.bachurin
 *
 */
public class Auditorium {
	
	public Auditorium(String auditoriumID) {
		super();
		this.auditoriumID = auditoriumID;
	}

	private String auditoriumID;

	@Override
	public String toString() {
		return "Auditorium [" + auditoriumID + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((auditoriumID == null) ? 0 : auditoriumID.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Auditorium other = (Auditorium) obj;
		if (auditoriumID == null) {
			if (other.auditoriumID != null)
				return false;
		} else if (!auditoriumID.equals(other.auditoriumID))
			return false;
		return true;
	}

	public String getAuditoriumID() {
		return auditoriumID;
	}

	public void setAuditoriumID(String auditoriumID) {
		this.auditoriumID = auditoriumID;
	}

}
